/*  
* Copyright (c) 2010, James Daniello
* This project is licensed under the 'New BSD' license.
* The full text of the license can be found in the root
* directory under the filename "LICENSE.
"
*/
package src.network;


/**
* A simple interface which allows an object to run and communicate with a PICAIUPingService object
* housed within the object implementing this interface
*/
public interface PICAIUCanPing{

  /**
  * Sends a ping command from the ping service to the object housing it 
  * (the object implementing this interface)
  */
  public void ping();
  
  /**
  * Notifies the object housing the ping service (the object implementing this interface)
  * that a pong has not been received in time
  */
  public void pongNotReceived();
  
  /**
  * Used by the ping service to see if it's parent (the object implementing this interface)
  * is still connected
  */
  public boolean isConnected();
  
  /**
  * Used by the ping service to see if it's parent (the object implementing this interface)
  * has debugging mode enabled--used to print debugging info to the command line
  */
  public boolean isVerbose();
} 